MetadataNodeReader.GetTitle Method (CultureInfo)

Gets the general title associated with this metadata that best matches the specified culture.

Parent Type: MetadataNodeReader

Namespace: Microsoft.LearningComponents.Manifest

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public string GetTitle (
CultureInfo culture

)

Parameters

culture

The culture used to determine which title to return.

Return Value

The title that best matches the specified culture or String.Empty if there is no title specified.

Exceptions
Exception type Condition
InvalidPackageException

This is the first call to this method, and the metadata is located in a metadata file that can not be found.

Remarks

Note that an InvalidPackageException may be thrown on the first call to this method. If this happens, subsequent calls do not throw additional exceptions. Instead, String.Empty is returned.

If Location is an absolute URI, this method returns String.Empty because absolute URI is not supported.